package com.powernode.service.impl;

import com.powernode.domain.ProductComments;
import com.powernode.mapper.ProductCommentsMapper;
import com.powernode.service.ProductCommentsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class ProductCommentsServiceImpl implements ProductCommentsService{

    @Resource
    private ProductCommentsMapper productCommentsMapper;

    @Override
    public int deleteByPrimaryKey(String commId) {
        return productCommentsMapper.deleteByPrimaryKey(commId);
    }

    @Override
    public int insert(ProductComments record) {
        return productCommentsMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductComments record) {
        return productCommentsMapper.insertSelective(record);
    }

    @Override
    public ProductComments selectByPrimaryKey(String commId) {
        return productCommentsMapper.selectByPrimaryKey(commId);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductComments record) {
        return productCommentsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProductComments record) {
        return productCommentsMapper.updateByPrimaryKey(record);
    }

}
